﻿using netCoreStudy.Dto;
using netCoreStudy.Entities;
using netCoreStudy.Entities.Base;

namespace netCoreStudy.Profile
{
	public class MaterialProfile : BaseProfile<Material, MaterialDto, AddMaterialDto, UpdateMaterialDto>
	{
		public MaterialProfile()
		{
			Entity2Dto
				.ForMember(d => d.Type, o => o.MapFrom(s => s.Type.GetEnumName()));
		}
	}
}